<html><head><title>PreferenceKeyValue</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">PreferenceKeyValue()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Value$ = <font color="#3A3966"><b>PreferenceKeyValue</b></font>()</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Returns the value, in string form, of the current key being enumerated with <a href="examinepreferencekeys.html">ExaminePreferenceKeys()</a>. 
To get the name of the key, use <a href="preferencekeyname.html">PreferenceKeyName()</a>. 

</blockquote><p><b>Parameters</b></p><blockquote>
None.


</blockquote><p><b>Return value</b></p><blockquote>

The value, in string form, of the current key being enumerated with <a href="examinepreferencekeys.html">ExaminePreferenceKeys()</a>. 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <font color="#3A3966">; Open a preference file</font>
<font color="#3A3966">  OpenPreferences</font>(<font color="#924B72">#PB_Compiler_Home</font> +&quot;Examples\Sources\Data\test.pref&quot;)
  
  <font color="#3A3966">; Select a group</font>
<font color="#3A3966">  PreferenceGroup</font>(&quot;window&quot;)
  
  <font color="#3A3966">; Examine keys in the group 'window'  </font>
<font color="#3A3966">  ExaminePreferenceKeys</font>()
  <b><font color="#3A3966">While</font></b>  <font color="#3A3966">NextPreferenceKey</font>() <font color="#3A3966">; While a key exists</font>
<font color="#3A3966">    MessageRequester</font>(&quot;Key group 'window'&quot;,<font color="#3A3966"> PreferenceKeyName</font>() + &quot; = &quot; +<font color="#3A3966"> PreferenceKeyValue</font>())  <font color="#3A3966">; Display the key with its data</font>
  <b><font color="#3A3966">Wend</font></b>
  
  <font color="#3A3966">; Close the preference file</font>
<font color="#3A3966">  ClosePreferences</font>()  
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="examinepreferencekeys.html">ExaminePreferenceKeys()</a>, <a href="preferencekeyname.html">PreferenceKeyName()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=preferencekeyname.html>PreferenceKeyName()</a> - <a href="index.html">Preference Index</a> - <a href="readpreferencedouble.html">ReadPreferenceDouble()</a> -><br><br>

</body></html>